package com.sdut.material.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sdut.material.mapper.SurveyMapper;
import com.sdut.material.pojo.Survey;
import com.sdut.material.service.ISurveyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Yu
 * @since 2022-04-20
 */
@Service
public class SurveyServiceImpl extends ServiceImpl<SurveyMapper, Survey> implements ISurveyService {
    @Autowired
    private SurveyMapper surveyMapper;
    @Override
    public List<Survey> selectAllSurveys() {
        return surveyMapper.selectList(new QueryWrapper<>());
    }
}
